

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Boost Generic Image Library - Boost.GIL  documentation</title>
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <link rel="stylesheet" href="_static/style.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
          URL_ROOT:    './',
          VERSION:     '',
          COLLAPSE_MODINDEX: false,
          FILE_SUFFIX: '.html'
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="top" title="Boost.GIL  documentation" href="#" />
    <link rel="next" title="Installation" href="installation.html" /> 
  </head>
  <body>
    <div class="header">
    <table border="0" cellpadding="7" cellspacing="0" width="100%" summary=
    "header">
      <tr>
        <td valign="top" width="300">
          <h3><a href="#"><img
          alt="C++ Boost" src="_static/gil.png" border="0"></a></h3>
        </td>

        <td >
          <h1 align="center"><a href="#"></a></h1>
        </td>
	<td>
      <div id="searchbox" style="display: none">
        <form class="search" action="search.html" method="get">
          <input type="text" name="q" size="18" />
          <input type="submit" value="Search" />
          <input type="hidden" name="check_keywords" value="yes" />
          <input type="hidden" name="area" value="default" />
        </form>
      </div>
      <script type="text/javascript">$('#searchbox').show(0);</script>
	</td>
      </tr>
    </table>
    </div>
    <hr/>
    <div class="content">
    <div class="navbar" style="text-align:right;">
      
      
      <a class="next" title="Installation" href="installation.html"><img src="_static/next.png" alt="next"/></a>
      
    </div>
      
  <div class="section" id="boost-generic-image-library">
<h1>Boost Generic Image Library</h1>
<p>The Generic Image Library (GIL) is a C++11 library that abstracts image
representations from algorithms and allows writing code that can work on
a variety of images with performance similar to hand-writing for a specific
image type.</p>
<div class="section" id="quickstart">
<h2>Quickstart</h2>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="installation.html">Installation</a></li>
<li class="toctree-l1"><a class="reference internal" href="tutorial/video.html">Tutorial: Video Lecture</a></li>
<li class="toctree-l1"><a class="reference internal" href="tutorial/histogram.html">Tutorial: Histogram</a></li>
<li class="toctree-l1"><a class="reference internal" href="tutorial/gradient.html">Tutorial: Image Gradient</a></li>
<li class="toctree-l1"><a class="reference internal" href="naming.html">Naming Conventions</a></li>
</ul>
</div>
</div>
<div class="section" id="core-library-documentation">
<h2>Core Library Documentation</h2>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="design/index.html">Design Guide</a><ul>
<li class="toctree-l2"><a class="reference internal" href="design/basics.html">Basics</a></li>
<li class="toctree-l2"><a class="reference internal" href="design/concepts.html">Concepts</a></li>
<li class="toctree-l2"><a class="reference internal" href="design/point.html">Point</a></li>
<li class="toctree-l2"><a class="reference internal" href="design/channel.html">Channel</a></li>
<li class="toctree-l2"><a class="reference internal" href="design/color_space.html">Color Space and Layout</a></li>
<li class="toctree-l2"><a class="reference internal" href="design/color_base.html">Color Base</a></li>
<li class="toctree-l2"><a class="reference internal" href="design/pixel.html">Pixel</a></li>
<li class="toctree-l2"><a class="reference internal" href="design/pixel_iterator.html">Pixel Iterator</a></li>
<li class="toctree-l2"><a class="reference internal" href="design/pixel_locator.html">Pixel Locator</a></li>
<li class="toctree-l2"><a class="reference internal" href="design/image_view.html">Image View</a></li>
<li class="toctree-l2"><a class="reference internal" href="design/image.html">Image</a></li>
<li class="toctree-l2"><a class="reference internal" href="design/dynamic_image.html">Dynamic images and image views</a></li>
<li class="toctree-l2"><a class="reference internal" href="design/metafunctions.html">Metafunctions</a></li>
<li class="toctree-l2"><a class="reference internal" href="design/examples.html">Examples</a></li>
<li class="toctree-l2"><a class="reference internal" href="design/technicalities.html">Technicalities</a></li>
<li class="toctree-l2"><a class="reference internal" href="design/extending.html">Extending</a></li>
<li class="toctree-l2"><a class="reference internal" href="design/conclusions.html">Conclusions</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="image_processing/index.html">Image Processing</a><ul>
<li class="toctree-l2"><a class="reference internal" href="image_processing/overview.html">Overview</a></li>
<li class="toctree-l2"><a class="reference internal" href="image_processing/basics.html">Basics</a></li>
<li class="toctree-l2"><a class="reference internal" href="image_processing/affine-region-detectors.html">Affine region detectors</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference external" href="./reference/index.html#://">API Reference</a></li>
</ul>
</div>
</div>
<div class="section" id="extensions-documentation">
<h2>Extensions Documentation</h2>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="io.html">IO extensions</a><ul>
<li class="toctree-l2"><a class="reference internal" href="io.html#overview">Overview</a></li>
<li class="toctree-l2"><a class="reference internal" href="io.html#supported-platforms">Supported Platforms</a></li>
<li class="toctree-l2"><a class="reference internal" href="io.html#tutorial">Tutorial</a></li>
<li class="toctree-l2"><a class="reference internal" href="io.html#using-io">Using IO</a></li>
<li class="toctree-l2"><a class="reference internal" href="io.html#running-gil-io-tests">Running gil::io tests</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="toolbox.html">ToolBox extension</a><ul>
<li class="toctree-l2"><a class="reference internal" href="toolbox.html#overview">Overview</a></li>
<li class="toctree-l2"><a class="reference internal" href="toolbox.html#folder-structure">Folder Structure</a></li>
<li class="toctree-l2"><a class="reference internal" href="toolbox.html#acknowledgements">Acknowledgements</a></li>
<li class="toctree-l2"><a class="reference internal" href="toolbox.html#id1">Reference</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="numeric.html">Numeric extension</a><ul>
<li class="toctree-l2"><a class="reference internal" href="numeric.html#overview">Overview</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div class="section" id="examples">
<h2>Examples</h2>
<ul class="simple">
<li><a class="reference download internal" href="_downloads/x_gradient.cpp" download=""><code class="xref download docutils literal"><span class="pre">x_gradient.cpp</span></code></a>:
Writing an algorithm that operates on generic images</li>
<li><a class="reference download internal" href="_downloads/dynamic_image.cpp" download=""><code class="xref download docutils literal"><span class="pre">dynamic_image.cpp</span></code></a>:
Using images whose properties (color space, channel type) are specified
at run time</li>
<li><a class="reference download internal" href="_downloads/histogram.cpp" download=""><code class="xref download docutils literal"><span class="pre">histogram.cpp</span></code></a>: Creating a histogram</li>
<li><a class="reference download internal" href="_downloads/interleaved_ptr.cpp" download=""><code class="xref download docutils literal"><span class="pre">interleaved_ptr.cpp</span></code></a>,
<a class="reference download internal" href="_downloads/interleaved_ptr.hpp" download=""><code class="xref download docutils literal"><span class="pre">interleaved_ptr.hpp</span></code></a>,
<a class="reference download internal" href="_downloads/interleaved_ref.hpp" download=""><code class="xref download docutils literal"><span class="pre">interleaved_ref.hpp</span></code></a>:
Creating your own pixel reference and pixel iterator</li>
<li><a class="reference download internal" href="_downloads/mandelbrot.cpp" download=""><code class="xref download docutils literal"><span class="pre">mandelbrot.cpp</span></code></a>:
Creating a synthetic image defined by a function</li>
<li><a class="reference download internal" href="_downloads/packed_pixel.cpp" download=""><code class="xref download docutils literal"><span class="pre">packed_pixel.cpp</span></code></a>:
Defining bitmasks and images whose channels or pixels are not byte-aligned</li>
<li><a class="reference download internal" href="_downloads/resize.cpp" download=""><code class="xref download docutils literal"><span class="pre">resize.cpp</span></code></a>:
Rescaling an image using bilinear sampling (requires the optional
Numeric extension)</li>
<li><a class="reference download internal" href="_downloads/affine.cpp" download=""><code class="xref download docutils literal"><span class="pre">affine.cpp</span></code></a>:
Applying an affine transformation to an image (requires the optional
Numeric extension)</li>
<li><a class="reference download internal" href="_downloads/convolution.cpp" download=""><code class="xref download docutils literal"><span class="pre">convolution.cpp</span></code></a>:
Blurring images (requires the optional Numeric extension)</li>
</ul>
</div>
</div>


    <div class="navbar" style="text-align:right;">
      
      
      <a class="next" title="Installation" href="installation.html"><img src="_static/next.png" alt="next"/></a>
      
    </div>
    </div>
    <div class="footer" role="contentinfo">
      Last updated on 2021-08-05 09:08:10.
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.5.6.
    </div>
  </body>
</html>